<%@ page  pageEncoding="utf-8"%>
<%@page import="org.personal.entity.User"%>
<%@page import="org.personal.Constants"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String uid=request.getParameter("uid");
System.out.println("loginAction.jsp uid="+uid);
if((uid!=null)&&(uid.trim().length()>1))
{
	User user=new User();
	user.setUid(uid);
	user.setName(uid);
	request.getSession().setAttribute(Constants.USER,user);
	response.sendRedirect("portal?pageId=1");
}else
{
	response.sendRedirect("error.jsp");
}
%>
